pp108 : Examples of Add XML as String

Examples of Add XML as String

This topic provides examples for the operation type - .

Add XML as String with Select

Target Element before Message Mapping

Source Element

Target Element after Message Mapping

The Target element is/GetNotificationTaskInput/GetNotificationTask/Taskand the structure of Target element before mapping the message is as follows:

<GetNotificationTaskInput>
    <GetNotificationTask>
        <Header>cn=rsahu,cn=authenticated users,
    cn=cordys,o=vanenburg.com</Header>
        <Task>Dummy Task</Task>
    </GetNotificationTask>
</GetNotificationTaskInput>

The Source element is/registeredAddressand the XML structure of the Source element is as follows:

<registeredAddress>
    <string>Winrock Boulevard,
  Software Units Layout, Freemont
  CA - 87757
  USA 
  </string>
</registeredAddress>

<GetNotificationTaskInput>
    <GetNotificationTask>
        <Header>cn=rsahu,cn=authenticated users, 
        cn=cordys,o=vanenburg.com</Header>
        <Task>Dummy Task
        <registeredAddress>
                <string>Winrock Boulevard, 
            Software Units Layout, 
            Freemont CA - 87757 USA</string>
            </registeredAddress>
        </Task>
    </GetNotificationTask>
</GetNotificationTaskInput>


Add XML as String with Fixed Value

Target Element before Message Mapping

Source Element

Target Element after Message Mapping

The Target element is/Orders/OrderIDand the XML structure of the Target element before mapping the message is as follows:

<Orders>
    <OrderID/>
</Orders>

The Source element is 250 and the XML structure of the Source element is 250.

<Orders>
    <OrderID>250</OrderID>
</Orders>


Related concepts

Pre Assignments
Post Assignments

Related tasks

Creating Assignments

Related reference

Operation Types
Examples of Add
Examples of Delete
Examples of Replace Content With
Examples of Replace With
Examples of Replace XML as String